package com.cdyx.outsideprescription.util;


import org.apache.commons.codec.digest.DigestUtils;

public class SHACoder {
    /**
     * SHA256Hex加密
     *
     * @param data 待加密数据
     * @return String 消息摘要
     * @throws Exception
     */
    public static String encodeSHA256Hex(String data) throws Exception {
        // 执行消息摘要
        return  DigestUtils.sha256Hex(data);
    }
}
